<template>
  <div>
    <!-- 声明式路由 -->
    <h1>嵌套路由</h1>
    <router-link :to="{name: 'home'}">主页</router-link>&nbsp;
    <router-link :to="{name: 'news'}">新闻</router-link>&nbsp;
    <router-link :to="{name: 'sport'}">体育</router-link>
    <!-- 路由视图 -->
    <router-view />
  </div>
</template>

<script>
export default {

}
</script>

<style>

</style>
